package com.hdw.med.bean.model;

import java.io.Serializable;
import java.util.Date;

public class MdMedPubfld implements Serializable {
    private static final long serialVersionUID = 1L;

    private String idPubfld;

    private String cd;

    private String na;

    private Integer euJavatp;

    private String naJavatp;

    private Integer numLth;

    private Integer numPrec;

    private String valDef;

    private Integer fgDim;

    private String cdDim;

    /**
     * 0 非维度字段 1退化维、2普通维度、3非校验维度 4对照维度
     */	
    private String sdDimtp;

    private String naDimtp;

    private String cdTbDim;

    private String des;

    private Date dtSysCre;

    private Date dtSysModi;

    public String getIdPubfld() {
        return idPubfld;
    }

    public void setIdPubfld(String idPubfld) {
        this.idPubfld = idPubfld == null ? null : idPubfld.trim();
    }

    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd == null ? null : cd.trim();
    }

    public String getNa() {
        return na;
    }

    public void setNa(String na) {
        this.na = na == null ? null : na.trim();
    }

    public Integer getEuJavatp() {
        return euJavatp;
    }

    public void setEuJavatp(Integer euJavatp) {
        this.euJavatp = euJavatp;
    }

    public String getNaJavatp() {
        return naJavatp;
    }

    public void setNaJavatp(String naJavatp) {
        this.naJavatp = naJavatp == null ? null : naJavatp.trim();
    }

    public Integer getNumLth() {
        return numLth;
    }

    public void setNumLth(Integer numLth) {
        this.numLth = numLth;
    }

    public Integer getNumPrec() {
        return numPrec;
    }

    public void setNumPrec(Integer numPrec) {
        this.numPrec = numPrec;
    }

    public String getValDef() {
        return valDef;
    }

    public void setValDef(String valDef) {
        this.valDef = valDef == null ? null : valDef.trim();
    }

    public Integer getFgDim() {
        return fgDim;
    }

    public void setFgDim(Integer fgDim) {
        this.fgDim = fgDim;
    }

    public String getCdDim() {
        return cdDim;
    }

    public void setCdDim(String cdDim) {
        this.cdDim = cdDim == null ? null : cdDim.trim();
    }

    public String getSdDimtp() {
        return sdDimtp;
    }

    public void setSdDimtp(String sdDimtp) {
        this.sdDimtp = sdDimtp == null ? null : sdDimtp.trim();
    }

    public String getNaDimtp() {
        return naDimtp;
    }

    public void setNaDimtp(String naDimtp) {
        this.naDimtp = naDimtp == null ? null : naDimtp.trim();
    }

    public String getCdTbDim() {
        return cdTbDim;
    }

    public void setCdTbDim(String cdTbDim) {
        this.cdTbDim = cdTbDim == null ? null : cdTbDim.trim();
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des == null ? null : des.trim();
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    public Date getDtSysModi() {
        return dtSysModi;
    }

    public void setDtSysModi(Date dtSysModi) {
        this.dtSysModi = dtSysModi;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdMedPubfld other = (MdMedPubfld) that;
        return (this.getIdPubfld() == null ? other.getIdPubfld() == null : this.getIdPubfld().equals(other.getIdPubfld()))
            && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd()))
            && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa()))
            && (this.getEuJavatp() == null ? other.getEuJavatp() == null : this.getEuJavatp().equals(other.getEuJavatp()))
            && (this.getNaJavatp() == null ? other.getNaJavatp() == null : this.getNaJavatp().equals(other.getNaJavatp()))
            && (this.getNumLth() == null ? other.getNumLth() == null : this.getNumLth().equals(other.getNumLth()))
            && (this.getNumPrec() == null ? other.getNumPrec() == null : this.getNumPrec().equals(other.getNumPrec()))
            && (this.getValDef() == null ? other.getValDef() == null : this.getValDef().equals(other.getValDef()))
            && (this.getFgDim() == null ? other.getFgDim() == null : this.getFgDim().equals(other.getFgDim()))
            && (this.getCdDim() == null ? other.getCdDim() == null : this.getCdDim().equals(other.getCdDim()))
            && (this.getSdDimtp() == null ? other.getSdDimtp() == null : this.getSdDimtp().equals(other.getSdDimtp()))
            && (this.getNaDimtp() == null ? other.getNaDimtp() == null : this.getNaDimtp().equals(other.getNaDimtp()))
            && (this.getCdTbDim() == null ? other.getCdTbDim() == null : this.getCdTbDim().equals(other.getCdTbDim()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()))
            && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre()))
            && (this.getDtSysModi() == null ? other.getDtSysModi() == null : this.getDtSysModi().equals(other.getDtSysModi()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdPubfld() == null) ? 0 : getIdPubfld().hashCode());
        result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
        result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
        result = prime * result + ((getEuJavatp() == null) ? 0 : getEuJavatp().hashCode());
        result = prime * result + ((getNaJavatp() == null) ? 0 : getNaJavatp().hashCode());
        result = prime * result + ((getNumLth() == null) ? 0 : getNumLth().hashCode());
        result = prime * result + ((getNumPrec() == null) ? 0 : getNumPrec().hashCode());
        result = prime * result + ((getValDef() == null) ? 0 : getValDef().hashCode());
        result = prime * result + ((getFgDim() == null) ? 0 : getFgDim().hashCode());
        result = prime * result + ((getCdDim() == null) ? 0 : getCdDim().hashCode());
        result = prime * result + ((getSdDimtp() == null) ? 0 : getSdDimtp().hashCode());
        result = prime * result + ((getNaDimtp() == null) ? 0 : getNaDimtp().hashCode());
        result = prime * result + ((getCdTbDim() == null) ? 0 : getCdTbDim().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        result = prime * result + ((getDtSysModi() == null) ? 0 : getDtSysModi().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idPubfld=").append(idPubfld);
        sb.append(", cd=").append(cd);
        sb.append(", na=").append(na);
        sb.append(", euJavatp=").append(euJavatp);
        sb.append(", naJavatp=").append(naJavatp);
        sb.append(", numLth=").append(numLth);
        sb.append(", numPrec=").append(numPrec);
        sb.append(", valDef=").append(valDef);
        sb.append(", fgDim=").append(fgDim);
        sb.append(", cdDim=").append(cdDim);
        sb.append(", sdDimtp=").append(sdDimtp);
        sb.append(", naDimtp=").append(naDimtp);
        sb.append(", cdTbDim=").append(cdTbDim);
        sb.append(", des=").append(des);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append(", dtSysModi=").append(dtSysModi);
        sb.append("]");
        return sb.toString();
    }
}